home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr10 / qhlpc.zip / QHLPC.ZIP / README.BAT < prev    next >
DOS Batch File  |  1993-03-01  |  2KB  |  68 lines

  1. echo off
  2.  
  3. :                         ReadMe.Bat, 01 Mar 93, Rhg
  4. SET PN=0
  5. if not "%PN%"=="0" goto ENV
  6.  
  7. :LOOP
  8. cls
  9. if %PN%==6 goto SetVar
  10. if not exist ReadMe.P%PN% goto ERROR
  11. if %PN%==5 SET PN=6
  12. if %PN%==4 SET PN=5
  13. if %PN%==3 SET PN=4
  14. if %PN%==2 SET PN=3
  15. if %PN%==1 SET PN=2
  16. if %PN%==0 SET PN=1
  17. goto LOOP
  18.  
  19. :SetVar
  20. SET PN=0
  21.  
  22. :Loop1
  23. cls
  24. if %PN%==6 goto preEND
  25. type ReadMe.P%PN%
  26.  
  27. if %PN%==5 SET PN=6
  28. if %PN%==4 SET PN=5
  29. if %PN%==3 SET PN=4
  30. if %PN%==2 SET PN=3
  31. if %PN%==1 SET PN=2
  32. if %PN%==0 SET PN=1
  33. echo                          Press any key to continue ...
  34. pause > nul
  35. goto Loop1
  36.  
  37. :ERROR
  38. echo                           ReadMe.Bat, 01 Mar 93, Rhg
  39. echo.
  40. echo             ERROR ... can NOT find the ReadMe.P%PN% file.
  41. echo                       ALL QHelpC source files MUST be on the drive
  42. echo                       and in the sub-DIR that you are logged onto.
  43. echo 
  44.  
  45. :preEND
  46. SET PN=
  47. goto END
  48.  
  49. :ENV
  50. cls
  51. echo                           ReadMe.Bat, 01 Mar 93, Rhg
  52. echo.
  53. echo           ERROR !  You do NOT have enough environmental space to
  54. echo                    store required variables. 18 bytes are required.
  55. echo.
  56. echo You have two choices:
  57. echo The 1st., and easiest, is to temporarly shorten your 'PATH' by 18 bytes.
  58. echo After QHelpC has been installed, you can revert back to your normal 'PATH'.
  59. echo.
  60. echo The 2nd., and most desireable for future use, is to add a SHELL statement
  61. echo to your Config.SYS file.  Since the syntax ( # of bytes ), for the SHELL
  62. echo statement is DOS-VER dependent, it is not given here. See your DOS manual.
  63. echo.
  64. echo 
  65. goto END
  66.  
  67. :end
  68.